package com.yantong.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

/**
 * 优惠券领取记录
 *
 * @author kanghaixin
 */
public class TicketRecord implements Serializable {
	/**
	 * 会员昵称
	 */
	private String nickname;
	/**
	 * 会员真实姓名
	 */
	private String realname;
	/**
	 * 会员联系方式
	 */
	private String mobile;
	/**
	 * 优惠券名称
	 */
	private String ticketName;
	/**
	 * 使用条件，满多少可以使用
	 */
	private Integer condition;
	/**
	 * 优惠券领取ID
	 */
	private Long id;
	/**
	 * 优惠券ID
	 */
	private Long ticketId;
	/**
	 * 会员ID
	 */
	private Long mid;
	/**
	 * 优惠券有效期起始
	 */
	private Date startTime;
	/**
	 * 截至
	 */
	private Date endTime;
	/**
	 * 领取时间
	 */
	private Date getTime;
	/**
	 * 使用时间
	 */
	private Date useTime;
	/**
	 * 订单ID
	 */
	private Long orderId;
	/**
	 * 状态，-1-已失效，0-未使用，1-已使用
	 */
	private Integer status;
	/**
	 * 实际领用数量
	 */
	private Integer num;
	/**
	 * 抵扣金额
	 */
	private BigDecimal deductAmount;
	/**
	 * 备注
	 */
	private String remark;
	/**
	 * 商户ID
	 */
	private Long centreId;
	/**
	 * 面额
	 */
	private BigDecimal amount;
	/**
	 * 优惠券类型1-抵扣券，2-折扣券
	 */
	private Integer type;

	/**
	 * 描述
	 */
	private String ticketDesc;

	private String cardNumber;
	private String password;

	//可使用的总次数
	private Integer count;
	//已使用的次数
	private Integer countUsed;
	private Integer ticketType;
	private Long parentId;
	private Long teamId;
	private Map<String, Object> subTicketRecordInfo;
	private Integer isFreeCharge;

	private String pcateName;
	private String ccateName;
	private String productName;

	private Integer rangeType;
	private String tXiaoqu;

	public String gettXiaoqu() {
		return tXiaoqu;
	}

	public void settXiaoqu(String tXiaoqu) {
		this.tXiaoqu = tXiaoqu;
	}

	public String getCardNumber() {
		return cardNumber;
	}

	public void setCardNumber(String cardNumber) {
		this.cardNumber = cardNumber;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getRangeType() {
		return rangeType;
	}

	public void setRangeType(Integer rangeType) {
		this.rangeType = rangeType;
	}

	public String getPcateName() {
		return pcateName;
	}

	public void setPcateName(String pcateName) {
		this.pcateName = pcateName;
	}

	public String getCcateName() {
		return ccateName;
	}

	public void setCcateName(String ccateName) {
		this.ccateName = ccateName;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getTicketDesc() {
		return ticketDesc;
	}

	public void setTicketDesc(String ticketDesc) {
		this.ticketDesc = ticketDesc;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getTicketName() {
		return ticketName;
	}

	public void setTicketName(String ticketName) {
		this.ticketName = ticketName;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getTicketId() {
		return ticketId;
	}

	public void setTicketId(Long ticketId) {
		this.ticketId = ticketId;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Date getGetTime() {
		return getTime;
	}

	public void setGetTime(Date getTime) {
		this.getTime = getTime;
	}

	public Date getUseTime() {
		return useTime;
	}

	public void setUseTime(Date useTime) {
		this.useTime = useTime;
	}

	public Long getOrderId() {
		return orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public BigDecimal getDeductAmount() {
		return deductAmount;
	}

	public void setDeductAmount(BigDecimal deductAmount) {
		this.deductAmount = deductAmount;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark == null ? null : remark.trim();
	}

	public Long getCentreId() {
		return centreId;
	}

	public void setCentreId(Long centreId) {
		this.centreId = centreId;
	}

	public Integer getCondition() {
		return condition;
	}

	public void setCondition(Integer condition) {
		this.condition = condition;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public Integer getCountUsed() {
		return countUsed;
	}

	public void setCountUsed(Integer countUsed) {
		this.countUsed = countUsed;
	}

	public Integer getTicketType() {
		return ticketType;
	}

	public void setTicketType(Integer ticketType) {
		this.ticketType = ticketType;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Long getTeamId() {
		return teamId;
	}

	public void setTeamId(Long teamId) {
		this.teamId = teamId;
	}

	public Map<String, Object> getSubTicketRecordInfo() {
		return subTicketRecordInfo;
	}

	public void setSubTicketRecordInfo(Map<String, Object> subTicketRecordInfo) {
		this.subTicketRecordInfo = subTicketRecordInfo;
	}

	public Integer getIsFreeCharge() {
		return isFreeCharge;
	}

	public void setIsFreeCharge(Integer isFreeCharge) {
		this.isFreeCharge = isFreeCharge;
	}
}